package com.yq.backend.controller;

import com.yq.backend.pojo.Result;
import com.yq.backend.pojo.SysOplog;
import com.yq.backend.service.SysLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @descriptions: 活动管理
 * @author: yunqiang
 * @date: 2022/5/3 11:27
 */
@Api(tags = {"系统管理：日志管理控制类"})
@RestController
@RequestMapping("/api/v1/sysLog")
public class SysLogController {

    @Autowired
    private SysLogService sysLogService;


    @ApiOperation(value = "日志列表")
    @PostMapping("/getLods")
    public Result getLods(int pageSize,int pageNow) {
        return this.sysLogService.getLods(new SysOplog(),pageSize,pageNow);
    }
}
